package svcmodel

import (
	"github.com/zeromicro/go-zero/core/stores/cache"
	"github.com/zeromicro/go-zero/core/stores/sqlx"
)

var _ GatewayServiceAccessControlModel = (*customGatewayServiceAccessControlModel)(nil)

type (
	// GatewayServiceAccessControlModel is an interface to be customized, add more methods here,
	// and implement the added methods in customGatewayServiceAccessControlModel.
	GatewayServiceAccessControlModel interface {
		gatewayServiceAccessControlModel
	}

	customGatewayServiceAccessControlModel struct {
		*defaultGatewayServiceAccessControlModel
	}
)

// NewGatewayServiceAccessControlModel returns a model for the database table.
func NewGatewayServiceAccessControlModel(conn sqlx.SqlConn, c cache.CacheConf) GatewayServiceAccessControlModel {
	return &customGatewayServiceAccessControlModel{
		defaultGatewayServiceAccessControlModel: newGatewayServiceAccessControlModel(conn, c),
	}
}
